package com.xiangge.zuoye;

public class Demo7 {
    public static void main(String[] args) {
        int tong = 0,i=0;
        while (tong<10){
            i++;
            tong=tong+i-3;
            if (tong<0){
                tong = 0;
            }

        }
        System.out.println(i+"分钟之后，水桶里能保持灌满水的状态");
    }
}
